package com.naizhuai.ui.home.Chart;

/**
 * @author：lichenxi
 * @date 2018/1/26 11
 * email：525603977@qq.com
 * Fighting
 */
public class PersonInfo {
    public String ProjectName;

    public int noslove;
    public int sloved;
    public int sloving;

    public PersonInfo(String projectName, int noslove, int sloved, int sloving) {
        ProjectName = projectName;
        this.noslove = noslove;
        this.sloved = sloved;
        this.sloving = sloving;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PersonInfo info = (PersonInfo) o;

        if (noslove != info.noslove) return false;
        if (sloved != info.sloved) return false;
        if (sloving != info.sloving) return false;
        return ProjectName != null ? ProjectName.equals(info.ProjectName) : info.ProjectName == null;
    }

    @Override
    public int hashCode() {
        int result = ProjectName != null ? ProjectName.hashCode() : 0;
        result = 31 * result + noslove;
        result = 31 * result + sloved;
        result = 31 * result + sloving;
        return result;
    }
}
